package exception;

public class ExceptionApiDemo {
    public static void main(String[] args) {
        try
        {
            String l="abc";
            System.out.println(Integer.parseInt(l));
        }
        catch (NumberFormatException e)
        {
            System.out.println("error");
            e.printStackTrace();
        }

        System.out.println("finish");
    }
}
